home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000852_andreas@mpa-garching.mpg.de_Thu Aug 18 19:40:15 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  6KB

  1. Received: from ibm-1.mpa-garching.mpg.de by cs.umb.edu with SMTP id AA27920
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Thu, 18 Aug 1994 11:39:25 -0400
  3. Received: (andreas@localhost) by ibm-1.MPA-Garching.MPG.DE (8.6.8.1/8.6) id RAA79041; Thu, 18 Aug 1994 17:40:15 +0200
  4. Date: Thu, 18 Aug 1994 17:40:15 +0200
  5. From: Andreas Schott <andreas@mpa-garching.mpg.de>
  6. Message-Id: <199408181540.RAA79041@ibm-1.MPA-Garching.MPG.DE>
  7. To: tex-k@cs.umb.edu
  8. Subject: Patch for tangle and weave
  9. Reply-To: andreas@mpa-garching.mpg.de (Andreas Schott)
  10.  
  11. Hi folks,
  12.  
  13. believe it or not, I'm still alive and want to contribute a bit.
  14. The following patches to tangle.ch, tangleboot.p, tangleboot.c
  15. and weave.ch are quite old. I think I have them submitted a long
  16. time ago, but cannot find them on the server. But I think they
  17. are still useful--for me even necessary.
  18.  
  19. The problem with the tangle-program is, that if I specify a path
  20. for the webfile-name, tangle wants to put the pascal-file and the
  21. pool-file into the directory, where the web-file is located, instead
  22. of creating them in the current directory. This is an unexpected
  23. behaviour and is failing for web-files in read-only file-systems.
  24. The same holds for weave and the tex-file. Therefore a patch for
  25. weave.ch is included, too.
  26.  
  27. Andreas Schott.
  28.  
  29. *** TeXorig/web2c-6.1/web2c/web/tangle.ch    Mon Mar 29 15:59:56 1993
  30. --- TeXmake/web2c-6.1/web2c/web/tangle.ch    Fri Apr  8 16:00:00 1994
  31. ***************
  32. *** 575,580 ****
  33. --- 575,584 ----
  34.   The end of a file name is marked with a |' '|, the convention assumed by 
  35.   the |reset| and |rewrite| procedures.
  36.   
  37. + The |pascal_file_name| and |pool_file_name| are choosen from the
  38. + |web_name| so that they are created in the current directory and
  39. + not in the directory, where the |web_name| points to.
  40.   @<Get |web_name|...@>=
  41.   begin
  42.     dot_pos := -1;
  43. ***************
  44. *** 599,607 ****
  45.       web_name[dot_pos+4] := ' ';
  46.     end;
  47.   
  48.     for i := 1 to dot_pos
  49.     do begin
  50. !     c := web_name[i];
  51.       pascal_file_name[i] := c;
  52.       pool_file_name[i] := c;
  53.     end;
  54. --- 603,614 ----
  55.       web_name[dot_pos+4] := ' ';
  56.     end;
  57.   
  58. +   if slash_pos = -1 then slash_pos := 0;
  59. +   dot_pos := dot_pos - slash_pos;
  60.     for i := 1 to dot_pos
  61.     do begin
  62. !     c := web_name[i+slash_pos];
  63.       pascal_file_name[i] := c;
  64.       pool_file_name[i] := c;
  65.     end;
  66. *** TeXorig/web2c-6.1/web2c/web/tangleboot.p    Mon Mar 29 16:49:42 1993
  67. --- TeXmake/web2c-6.1/web2c/web/tangleboot.p    Fri Apr  8 16:01:00 1994
  68. ***************
  69. *** 68,74 ****
  70.   if(dotpos=-1)or(dotpos<slashpos)then begin dotpos:=i;
  71.   webname[dotpos]:='.';webname[dotpos+1]:='w';webname[dotpos+2]:='e';
  72.   webname[dotpos+3]:='b';webname[dotpos+4]:=' ';end;
  73. ! for i:=1 to dotpos do begin c:=webname[i];pascalfilename[i]:=c;
  74.   poolfilename[i]:=c;end;pascalfilename[dotpos+1]:='p';
  75.   pascalfilename[dotpos+2]:=' ';poolfilename[dotpos+1]:='p';
  76.   poolfilename[dotpos+2]:='o';poolfilename[dotpos+3]:='o';
  77. --- 68,75 ----
  78.   if(dotpos=-1)or(dotpos<slashpos)then begin dotpos:=i;
  79.   webname[dotpos]:='.';webname[dotpos+1]:='w';webname[dotpos+2]:='e';
  80.   webname[dotpos+3]:='b';webname[dotpos+4]:=' ';end;
  81. ! if slashpos = -1 then slashpos:=0;dotpos:=dotpos-slashpos;
  82. ! for i:=1 to dotpos do begin c:=webname[i+slashpos];pascalfilename[i]:=c;
  83.   poolfilename[i]:=c;end;pascalfilename[dotpos+1]:='p';
  84.   pascalfilename[dotpos+2]:=' ';poolfilename[dotpos+1]:='p';
  85.   poolfilename[dotpos+2]:='o';poolfilename[dotpos+3]:='o';
  86. *** TeXorig/web2c-6.1/web2c/web/tangleboot.c    Mon Mar 29 16:50:02 1993
  87. --- TeXmake/web2c-6.1/web2c/web/tangleboot.c    Fri Apr  8 16:02:00 1994
  88. ***************
  89. *** 168,177 ****
  90.           webname [ dotpos + 3 ] = 'b' ; 
  91.           webname [ dotpos + 4 ] = ' ' ; 
  92.         } 
  93.         {register integer for_end; i = 1 ; for_end = dotpos ; if ( i <= 
  94.         for_end) do 
  95.           {
  96. !           c = webname [ i ] ; 
  97.             pascalfilename [ i ] = c ; 
  98.             poolfilename [ i ] = c ; 
  99.           } 
  100. --- 168,180 ----
  101.           webname [ dotpos + 3 ] = 'b' ; 
  102.           webname [ dotpos + 4 ] = ' ' ; 
  103.         } 
  104. +       if ( slashpos == -1 )
  105. +         slashpos = 0 ;
  106. +       dotpos = dotpos - slashpos ;
  107.         {register integer for_end; i = 1 ; for_end = dotpos ; if ( i <= 
  108.         for_end) do 
  109.           {
  110. !           c = webname [ i + slashpos ] ; 
  111.             pascalfilename [ i ] = c ; 
  112.             poolfilename [ i ] = c ; 
  113.           } 
  114. *** TeXorig/web2c-6.1/web2c/web/weave.ch    Sun Feb 21 12:47:35 1993
  115. --- TeXmake/web2c-6.1/web2c/web/weave.ch    Fri Apr  8 16:03:00 1994
  116. ***************
  117. *** 476,481 ****
  118. --- 476,485 ----
  119.   The end of a file name is marked with a |' '|, the convention assumed by 
  120.   the |reset| and |rewrite| procedures.
  121.   
  122. + The |tex_file_name| is choosen from the
  123. + |web_file_name| so that it is created in the current directory and
  124. + not in the directory, where the |web_file_name| points to.
  125.   @<Get |web_file_name|...@>=
  126.   begin
  127.     dot_pos := -1;
  128. ***************
  129. *** 500,507 ****
  130.       web_file_name[dot_pos+4] := ' ';
  131.     end;
  132.   
  133.     for i := 1 to dot_pos do
  134. !     tex_file_name[i] := web_file_name[i];
  135.   
  136.     tex_file_name[dot_pos+1] := 't';
  137.     tex_file_name[dot_pos+2] := 'e';
  138. --- 504,514 ----
  139.       web_file_name[dot_pos+4] := ' ';
  140.     end;
  141.   
  142. +   if slash_pos = -1 then slash_pos := 0;
  143. +   dot_pos := dot_pos - slash_pos;
  144.     for i := 1 to dot_pos do
  145. !     tex_file_name[i] := web_file_name[i+slash_pos];
  146.   
  147.     tex_file_name[dot_pos+1] := 't';
  148.     tex_file_name[dot_pos+2] := 'e';